package Thread.Synchroized03;

public class Ticket {
    public static void main(String[] args) {
        //创建Runnable01接口的实现类对象
        Runnable01 runnable01=new Runnable01();
        //创建Thread类对象，构造方法传递Runnable01接口的实现类对象
        Thread one=new Thread(runnable01);
        Thread two=new Thread(runnable01);
        Thread three=new Thread(runnable01);
        //调用start开启多线程
        one.start();
        two.start();
        three.start();
    }
}
